home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Text Processing / Free Text 1.03 / Stack indexer⁄browser v.1.03 / Stack indexer_browser v.1.03 / background_2734.xml next >
Encoding:
Extensible Markup Language  |  1993-12-27  |  40.8 KB  |  982 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2734</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3416.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_6548.css" />
  11.     <part>
  12.         <id>15</id>
  13.         <type>button</type>
  14.         <visible> <true /> </visible>
  15.         <reserved5> 0 </reserved5>
  16.         <reserved4> 0 </reserved4>
  17.         <reserved3> 0 </reserved3>
  18.         <reserved2> 0 </reserved2>
  19.         <reserved1> 0 </reserved1>
  20.         <enabled> <true /> </enabled>
  21.         <rect>
  22.             <left>233</left>
  23.             <top>0</top>
  24.             <right>255</right>
  25.             <bottom>22</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <showName> <false /> </showName>
  29.         <highlight> <false /> </highlight>
  30.         <autoHighlight> <false /> </autoHighlight>
  31.         <sharedHighlight> <true /> </sharedHighlight>
  32.         <family>0</family>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>29514</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Chicago</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <name>empty subset 1</name>
  40.         <script>on mouseUp
  41. if the OptionKey is down then
  42. show field "SearchPattern1"
  43. else if the CommandKey is down then
  44. ask "Proximity range (bytes)?" with 48
  45. setNeighborhoodSize It -- reset neighborhood for proximity search
  46. else -- empty the subset associated with Index field #1
  47. checkOpenDatabase
  48. if not (getSubsetHandle(1) = 0 or getSubsetHandle(1) = empty) then
  49. get zbrowser ("RELEASESUBSET", getSubsetHandle(1))
  50. end if
  51. setSubsetHandle 1,zbrowser("NEWSUBSET",getTextFileRefNum())
  52. get zbrowser ("EMPTYSUBSET", getSubsetHandle(1))
  53. browseIndex1
  54. put empty into field "SearchPattern1"
  55. show field "SearchPattern1"
  56. show bg button "fill subset 1"
  57. show bg button "not subset 1"
  58. if the visible of bg button "fill subset 2" then
  59. show bg button "or subsets"
  60. show bg button "and subsets"
  61. end if
  62. end if
  63. end mouseUp
  64. </script>
  65.     </part>
  66.     <part>
  67.         <id>20</id>
  68.         <type>button</type>
  69.         <visible> <true /> </visible>
  70.         <reserved5> 0 </reserved5>
  71.         <reserved4> 0 </reserved4>
  72.         <reserved3> 0 </reserved3>
  73.         <reserved2> 0 </reserved2>
  74.         <reserved1> 0 </reserved1>
  75.         <enabled> <true /> </enabled>
  76.         <rect>
  77.             <left>257</left>
  78.             <top>0</top>
  79.             <right>279</right>
  80.             <bottom>22</bottom>
  81.         </rect>
  82.         <style>transparent</style>
  83.         <showName> <false /> </showName>
  84.         <highlight> <false /> </highlight>
  85.         <autoHighlight> <false /> </autoHighlight>
  86.         <sharedHighlight> <true /> </sharedHighlight>
  87.         <family>0</family>
  88.         <titleWidth>0</titleWidth>
  89.         <icon>29514</icon>
  90.         <textAlign>center</textAlign>
  91.         <font>Chicago</font>
  92.         <textSize>12</textSize>
  93.         <textStyle>plain</textStyle>
  94.         <name>empty subset 2</name>
  95.         <script>on mouseUp
  96. if the OptionKey is down then
  97. show field "SearchPattern2"
  98. else if the CommandKey is down then
  99. ask "Proximity range (bytes)?" with 48
  100. setNeighborhoodSize It -- reset neighborhood for proximity search
  101. else -- empty the subset associated with Index field #2
  102. checkOpenDatabase
  103. if not (getSubsetHandle(2) = 0 or getSubsetHandle(2) = empty) then
  104. get zbrowser ("RELEASESUBSET", getSubsetHandle(2))
  105. end if
  106. setSubsetHandle 2,zbrowser("NEWSUBSET",getTextFileRefNum())
  107. get zbrowser ("EMPTYSUBSET", getSubsetHandle(2))
  108. browseIndex2
  109. put empty into field "SearchPattern2"
  110. show field "SearchPattern2"
  111. show bg button "fill subset 2"
  112. show bg button "not subset 2"
  113. if the visible of bg button "fill subset 1" then
  114. show bg button "or subsets"
  115. show bg button "and subsets"
  116. end if
  117. end if
  118. end mouseUp
  119. </script>
  120.     </part>
  121.     <part>
  122.         <id>39</id>
  123.         <type>button</type>
  124.         <visible> <true /> </visible>
  125.         <reserved5> 0 </reserved5>
  126.         <reserved4> 0 </reserved4>
  127.         <reserved3> 0 </reserved3>
  128.         <reserved2> 0 </reserved2>
  129.         <reserved1> 0 </reserved1>
  130.         <enabled> <true /> </enabled>
  131.         <rect>
  132.             <left>493</left>
  133.             <top>173</top>
  134.             <right>512</right>
  135.             <bottom>193</bottom>
  136.         </rect>
  137.         <style>rectangle</style>
  138.         <showName> <false /> </showName>
  139.         <highlight> <false /> </highlight>
  140.         <autoHighlight> <true /> </autoHighlight>
  141.         <sharedHighlight> <true /> </sharedHighlight>
  142.         <family>0</family>
  143.         <titleWidth>0</titleWidth>
  144.         <icon>22489</icon>
  145.         <textAlign>center</textAlign>
  146.         <font>Chicago</font>
  147.         <textSize>12</textSize>
  148.         <textStyle>plain</textStyle>
  149.         <name>pageDownContext</name>
  150.         <script>on mouseDown
  151. global contextLines
  152. checkOpenDatabase
  153. if line contextLines of field Context is empty then exit mouseDown
  154. setInstanceNum getTextPtrListInstanceItem (contextLines)
  155. browseContext 1
  156. setInstanceNum getTextPtrListInstanceItem (1)
  157. end mouseDown
  158.  
  159. on mouseStillDown
  160. global contextLines
  161. if line contextLines of field Context is empty then exit mouseStillDown
  162. setInstanceNum getTextPtrListInstanceItem (contextLines)
  163. browseContext 1
  164. setInstanceNum getTextPtrListInstanceItem (1)
  165. end mouseStillDown
  166. </script>
  167.     </part>
  168.     <part>
  169.         <id>38</id>
  170.         <type>button</type>
  171.         <visible> <true /> </visible>
  172.         <reserved5> 0 </reserved5>
  173.         <reserved4> 0 </reserved4>
  174.         <reserved3> 0 </reserved3>
  175.         <reserved2> 0 </reserved2>
  176.         <reserved1> 0 </reserved1>
  177.         <enabled> <true /> </enabled>
  178.         <rect>
  179.             <left>493</left>
  180.             <top>135</top>
  181.             <right>512</right>
  182.             <bottom>159</bottom>
  183.         </rect>
  184.         <style>rectangle</style>
  185.         <showName> <false /> </showName>
  186.         <highlight> <false /> </highlight>
  187.         <autoHighlight> <true /> </autoHighlight>
  188.         <sharedHighlight> <true /> </sharedHighlight>
  189.         <family>0</family>
  190.         <titleWidth>0</titleWidth>
  191.         <icon>22489</icon>
  192.         <textAlign>center</textAlign>
  193.         <font>Chicago</font>
  194.         <textSize>12</textSize>
  195.         <textStyle>plain</textStyle>
  196.         <name>pageUpContext</name>
  197.         <script>on mouseDown
  198. global contextLines
  199. checkOpenDatabase
  200. if line 1 of field Context is empty then exit mouseDown
  201. browseContext contextLines
  202. setInstanceNum getTextPtrListInstanceItem (1)
  203. end mouseDown
  204.  
  205. on mouseStillDown
  206. global contextLines
  207. if line 1 of field Context is empty then exit mouseStillDown
  208. browseContext contextLines
  209. setInstanceNum getTextPtrListInstanceItem (1)
  210. end mouseStillDown
  211. </script>
  212.     </part>
  213.     <part>
  214.         <id>33</id>
  215.         <type>button</type>
  216.         <visible> <true /> </visible>
  217.         <reserved5> 0 </reserved5>
  218.         <reserved4> 0 </reserved4>
  219.         <reserved3> 0 </reserved3>
  220.         <reserved2> 0 </reserved2>
  221.         <reserved1> 0 </reserved1>
  222.         <enabled> <true /> </enabled>
  223.         <rect>
  224.             <left>213</left>
  225.             <top>86</top>
  226.             <right>233</right>
  227.             <bottom>105</bottom>
  228.         </rect>
  229.         <style>rectangle</style>
  230.         <showName> <false /> </showName>
  231.         <highlight> <false /> </highlight>
  232.         <autoHighlight> <true /> </autoHighlight>
  233.         <sharedHighlight> <true /> </sharedHighlight>
  234.         <family>0</family>
  235.         <titleWidth>0</titleWidth>
  236.         <icon>22489</icon>
  237.         <textAlign>center</textAlign>
  238.         <font>Chicago</font>
  239.         <textSize>12</textSize>
  240.         <textStyle>plain</textStyle>
  241.         <name>pageDownIndex1</name>
  242.         <script>on mouseDown
  243. global indexLines
  244. checkOpenDatabase
  245. if line indexLines of field index1 is empty then
  246. beep
  247. exit mouseDown
  248. end if
  249. setWordNum1 (getWordNum1() + indexLines - 1)
  250. browseIndex1
  251. end mouseDown
  252.  
  253. on mouseStillDown
  254. global indexLines
  255. if line indexLines of field index1 is empty then
  256. beep
  257. exit mouseStillDown
  258. end if
  259. setWordNum1 (getWordNum1() + indexLines - 1)
  260. browseIndex1
  261. end mouseStillDown
  262. </script>
  263.     </part>
  264.     <part>
  265.         <id>25</id>
  266.         <type>button</type>
  267.         <visible> <true /> </visible>
  268.         <reserved5> 0 </reserved5>
  269.         <reserved4> 0 </reserved4>
  270.         <reserved3> 0 </reserved3>
  271.         <reserved2> 0 </reserved2>
  272.         <reserved1> 0 </reserved1>
  273.         <enabled> <true /> </enabled>
  274.         <rect>
  275.             <left>213</left>
  276.             <top>49</top>
  277.             <right>233</right>
  278.             <bottom>72</bottom>
  279.         </rect>
  280.         <style>rectangle</style>
  281.         <showName> <false /> </showName>
  282.         <highlight> <false /> </highlight>
  283.         <autoHighlight> <true /> </autoHighlight>
  284.         <sharedHighlight> <true /> </sharedHighlight>
  285.         <family>0</family>
  286.         <titleWidth>0</titleWidth>
  287.         <icon>22489</icon>
  288.         <textAlign>center</textAlign>
  289.         <font>Chicago</font>
  290.         <textSize>12</textSize>
  291.         <textStyle>plain</textStyle>
  292.         <name>pageUpIndex1</name>
  293.         <script>on mouseDown
  294. global indexLines
  295. checkOpenDatabase
  296. get getWordNum1() - indexLines + 1
  297. if It < 0 then
  298. beep
  299. put 0 into It
  300. end if
  301. setWordNum1 It
  302. browseIndex1
  303. end mouseDown
  304.  
  305. on mouseStillDown
  306. global indexLines
  307. get getWordNum1() - indexLines + 1
  308. if It < 0 then
  309. beep
  310. put 0 into It
  311. end if
  312. setWordNum1 It
  313. browseIndex1
  314. end mouseStillDown
  315. </script>
  316.     </part>
  317.     <part>
  318.         <id>35</id>
  319.         <type>button</type>
  320.         <visible> <true /> </visible>
  321.         <reserved5> 0 </reserved5>
  322.         <reserved4> 0 </reserved4>
  323.         <reserved3> 0 </reserved3>
  324.         <reserved2> 0 </reserved2>
  325.         <reserved1> 0 </reserved1>
  326.         <enabled> <true /> </enabled>
  327.         <rect>
  328.             <left>492</left>
  329.             <top>49</top>
  330.             <right>512</right>
  331.             <bottom>72</bottom>
  332.         </rect>
  333.         <style>rectangle</style>
  334.         <showName> <false /> </showName>
  335.         <highlight> <false /> </highlight>
  336.         <autoHighlight> <true /> </autoHighlight>
  337.         <sharedHighlight> <true /> </sharedHighlight>
  338.         <family>0</family>
  339.         <titleWidth>0</titleWidth>
  340.         <icon>22489</icon>
  341.         <textAlign>center</textAlign>
  342.         <font>Chicago</font>
  343.         <textSize>12</textSize>
  344.         <textStyle>plain</textStyle>
  345.         <name>pageUpIndex2</name>
  346.         <script>on mouseDown
  347. global indexLines
  348. checkOpenDatabase
  349. get getWordNum2() - indexLines + 1
  350. if It < 0 then
  351. beep
  352. put 0 into It
  353. end if
  354. setWordNum2 It
  355. browseIndex2
  356. end mouseDown
  357.  
  358. on mouseStillDown
  359. global indexLines
  360. get getWordNum2() - indexLines + 1
  361. if It < 0 then
  362. beep
  363. put 0 into It
  364. end if
  365. setWordNum2 It
  366. browseIndex2
  367. end mouseStillDown
  368. </script>
  369.     </part>
  370.     <part>
  371.         <id>36</id>
  372.         <type>button</type>
  373.         <visible> <true /> </visible>
  374.         <reserved5> 0 </reserved5>
  375.         <reserved4> 0 </reserved4>
  376.         <reserved3> 0 </reserved3>
  377.         <reserved2> 0 </reserved2>
  378.         <reserved1> 0 </reserved1>
  379.         <enabled> <true /> </enabled>
  380.         <rect>
  381.             <left>493</left>
  382.             <top>86</top>
  383.             <right>512</right>
  384.             <bottom>105</bottom>
  385.         </rect>
  386.         <style>rectangle</style>
  387.         <showName> <false /> </showName>
  388.         <highlight> <false /> </highlight>
  389.         <autoHighlight> <true /> </autoHighlight>
  390.         <sharedHighlight> <true /> </sharedHighlight>
  391.         <family>0</family>
  392.         <titleWidth>0</titleWidth>
  393.         <icon>22489</icon>
  394.         <textAlign>center</textAlign>
  395.         <font>Chicago</font>
  396.         <textSize>12</textSize>
  397.         <textStyle>plain</textStyle>
  398.         <name>pageDownIndex2</name>
  399.         <script>on mouseDown
  400. global indexLines
  401. checkOpenDatabase
  402. if line indexLines of field index2 is empty then
  403. beep
  404. exit mouseDown
  405. end if
  406. setWordNum2 (getWordNum2() + indexLines - 1)
  407. browseIndex2
  408. end mouseDown
  409.  
  410. on mouseStillDown
  411. global indexLines
  412. if line indexLines of field index2 is empty then
  413. beep
  414. exit mouseStillDown
  415. end if
  416. setWordNum2 (getWordNum2() + indexLines - 1)
  417. browseIndex2
  418. end mouseStillDown
  419. </script>
  420.     </part>
  421.     <part>
  422.         <id>31</id>
  423.         <type>button</type>
  424.         <visible> <true /> </visible>
  425.         <reserved5> 0 </reserved5>
  426.         <reserved4> 0 </reserved4>
  427.         <reserved3> 0 </reserved3>
  428.         <reserved2> 0 </reserved2>
  429.         <reserved1> 0 </reserved1>
  430.         <enabled> <true /> </enabled>
  431.         <rect>
  432.             <left>495</left>
  433.             <top>104</top>
  434.             <right>512</right>
  435.             <bottom>120</bottom>
  436.         </rect>
  437.         <style>rectangle</style>
  438.         <showName> <false /> </showName>
  439.         <highlight> <false /> </highlight>
  440.         <autoHighlight> <true /> </autoHighlight>
  441.         <sharedHighlight> <true /> </sharedHighlight>
  442.         <family>0</family>
  443.         <titleWidth>0</titleWidth>
  444.         <icon>20407</icon>
  445.         <textAlign>center</textAlign>
  446.         <font>Chicago</font>
  447.         <textSize>12</textSize>
  448.         <textStyle>plain</textStyle>
  449.         <name>scrollDownIndex2</name>
  450.         <script>on mouseDown
  451. global indexLines
  452. checkOpenDatabase
  453. if line indexLines of field Index2 is empty then
  454. beep
  455. exit mouseDown
  456. end if
  457. setWordNum2 (getWordNum2() + 1)
  458. browseIndex2
  459. end mouseDown
  460.  
  461. on mouseStillDown
  462. global indexLines
  463. if line indexLines of field Index2 is empty then
  464. beep
  465. exit mouseStillDown
  466. end if
  467. setWordNum2 (getWordNum2() + 2)
  468. browseIndex2
  469. end mouseStillDown
  470. </script>
  471.     </part>
  472.     <part>
  473.         <id>32</id>
  474.         <type>button</type>
  475.         <visible> <true /> </visible>
  476.         <reserved5> 0 </reserved5>
  477.         <reserved4> 0 </reserved4>
  478.         <reserved3> 0 </reserved3>
  479.         <reserved2> 0 </reserved2>
  480.         <reserved1> 0 </reserved1>
  481.         <enabled> <true /> </enabled>
  482.         <rect>
  483.             <left>496</left>
  484.             <top>71</top>
  485.             <right>512</right>
  486.             <bottom>87</bottom>
  487.         </rect>
  488.         <style>rectangle</style>
  489.         <showName> <false /> </showName>
  490.         <highlight> <false /> </highlight>
  491.         <autoHighlight> <true /> </autoHighlight>
  492.         <sharedHighlight> <true /> </sharedHighlight>
  493.         <family>0</family>
  494.         <titleWidth>0</titleWidth>
  495.         <icon>15717</icon>
  496.         <textAlign>center</textAlign>
  497.         <font>Chicago</font>
  498.         <textSize>12</textSize>
  499.         <textStyle>plain</textStyle>
  500.         <name>jumpIndex2</name>
  501.         <script>on mouseUp
  502. checkOpenDatabase
  503. ask "Word to jump to?"
  504. if It is empty then exit to HyperCard
  505. lock screen
  506. setWordNum2 (line 1 of zbrowser ("LOCATE", It, getKeyFileRefNum()))
  507. if getWordNum2() < 0 then setWordNum2(0)
  508. browseIndex2
  509. end mouseUp
  510.  
  511. </script>
  512.     </part>
  513.     <part>
  514.         <id>30</id>
  515.         <type>button</type>
  516.         <visible> <true /> </visible>
  517.         <reserved5> 0 </reserved5>
  518.         <reserved4> 0 </reserved4>
  519.         <reserved3> 0 </reserved3>
  520.         <reserved2> 0 </reserved2>
  521.         <reserved1> 0 </reserved1>
  522.         <enabled> <true /> </enabled>
  523.         <rect>
  524.             <left>495</left>
  525.             <top>35</top>
  526.             <right>512</right>
  527.             <bottom>51</bottom>
  528.         </rect>
  529.         <style>rectangle</style>
  530.         <showName> <false /> </showName>
  531.         <highlight> <false /> </highlight>
  532.         <autoHighlight> <true /> </autoHighlight>
  533.         <sharedHighlight> <true /> </sharedHighlight>
  534.         <family>0</family>
  535.         <titleWidth>0</titleWidth>
  536.         <icon>24019</icon>
  537.         <textAlign>center</textAlign>
  538.         <font>Chicago</font>
  539.         <textSize>12</textSize>
  540.         <textStyle>plain</textStyle>
  541.         <name>scrollUpIndex2</name>
  542.         <script>on mouseDown
  543. checkOpenDatabase
  544. get getWordNum2() - 1
  545. if It < 0 then
  546. beep
  547. put 0 into It
  548. end if
  549. setWordNum2 It
  550. browseIndex2
  551. end mouseDown
  552.  
  553. on mouseStillDown
  554. get getWordNum2() - 2
  555. if It < 0 then
  556. beep
  557. put 0 into It
  558. end if
  559. setWordNum2 It
  560. browseIndex2
  561. end mouseStillDown
  562. </script>
  563.     </part>
  564.     <part>
  565.         <id>34</id>
  566.         <type>button</type>
  567.         <visible> <true /> </visible>
  568.         <reserved5> 0 </reserved5>
  569.         <reserved4> 0 </reserved4>
  570.         <reserved3> 0 </reserved3>
  571.         <reserved2> 0 </reserved2>
  572.         <reserved1> 0 </reserved1>
  573.         <enabled> <true /> </enabled>
  574.         <rect>
  575.             <left>216</left>
  576.             <top>35</top>
  577.             <right>233</right>
  578.             <bottom>51</bottom>
  579.         </rect>
  580.         <style>rectangle</style>
  581.         <showName> <false /> </showName>
  582.         <highlight> <false /> </highlight>
  583.         <autoHighlight> <true /> </autoHighlight>
  584.         <sharedHighlight> <true /> </sharedHighlight>
  585.         <family>0</family>
  586.         <titleWidth>0</titleWidth>
  587.         <icon>24019</icon>
  588.         <textAlign>center</textAlign>
  589.         <font>Chicago</font>
  590.         <textSize>12</textSize>
  591.         <textStyle>plain</textStyle>
  592.         <name>scrollUpIndex1</name>
  593.         <script>on mouseDown
  594. checkOpenDatabase
  595. get getWordNum1() - 1
  596. if It < 0 then
  597. beep
  598. put 0 into It
  599. end if
  600. setWordNum1 It
  601. browseIndex1
  602. end mouseDown
  603.  
  604. on mouseStillDown
  605. get getWordNum1() - 2
  606. if It < 0 then
  607. beep
  608. put 0 into It
  609. end if
  610. setWordNum1 It
  611. browseIndex1
  612. end mouseStillDown
  613. </script>
  614.     </part>
  615.     <part>
  616.         <id>12</id>
  617.         <type>button</type>
  618.         <visible> <true /> </visible>
  619.         <reserved5> 0 </reserved5>
  620.         <reserved4> 0 </reserved4>
  621.         <reserved3> 0 </reserved3>
  622.         <reserved2> 0 </reserved2>
  623.         <reserved1> 0 </reserved1>
  624.         <enabled> <true /> </enabled>
  625.         <rect>
  626.             <left>217</left>
  627.             <top>71</top>
  628.             <right>233</right>
  629.             <bottom>87</bottom>
  630.         </rect>
  631.         <style>rectangle</style>
  632.         <showName> <false /> </showName>
  633.         <highlight> <false /> </highlight>
  634.         <autoHighlight> <true /> </autoHighlight>
  635.         <sharedHighlight> <true /> </sharedHighlight>
  636.         <family>0</family>
  637.         <titleWidth>0</titleWidth>
  638.         <icon>15717</icon>
  639.         <textAlign>center</textAlign>
  640.         <font>Chicago</font>
  641.         <textSize>12</textSize>
  642.         <textStyle>plain</textStyle>
  643.         <name>jumpIndex1</name>
  644.         <script>on mouseUp
  645. checkOpenDatabase
  646. ask "Word to jump to?"
  647. if It is empty then exit to HyperCard
  648. lock screen
  649. setWordNum1 (line 1 of zbrowser ("LOCATE", It, getKeyFileRefNum()))
  650. if getWordNum1() < 0 then setWordNum1(0)
  651. browseIndex1
  652. end mouseUp
  653.  
  654. </script>
  655.     </part>
  656.     <part>
  657.         <id>3</id>
  658.         <type>field</type>
  659.         <visible> <true /> </visible>
  660.         <dontWrap> <false /> </dontWrap>
  661.         <dontSearch> <false /> </dontSearch>
  662.         <sharedText> <false /> </sharedText>
  663.         <fixedLineHeight> <true /> </fixedLineHeight>
  664.         <autoTab> <false /> </autoTab>
  665.         <lockText> <true /> </lockText>
  666.         <rect>
  667.             <left>279</left>
  668.             <top>35</top>
  669.             <right>496</right>
  670.             <bottom>120</bottom>
  671.         </rect>
  672.         <style>rectangle</style>
  673.         <autoSelect> <false /> </autoSelect>
  674.         <showLines> <false /> </showLines>
  675.         <wideMargins> <false /> </wideMargins>
  676.         <multipleLines> <false /> </multipleLines>
  677.         <reservedFamily> 0 </reservedFamily>
  678.         <titleWidth>0</titleWidth>
  679.         <icon>0</icon>
  680.         <textAlign>left</textAlign>
  681.         <font>Monaco</font>
  682.         <textSize>9</textSize>
  683.         <textStyle>plain</textStyle>
  684.         <textHeight>12</textHeight>
  685.         <name>Index2</name>
  686.         <script>on mouseUp
  687. global whichSubset
  688. put ShiftKey() into shifty
  689. put OptionKey() into opty
  690. checkOpenDatabase -- make sure files are open
  691. set cursor to watch
  692. lock screen
  693. put clickedLineNum() into clickedLine
  694. if shifty is down and getSubsetHandle(2) is not 0 then
  695. -- must add or subtract word from subset
  696. show field "SearchPattern2"
  697. if opty is down then -- subtract the word
  698. put " and not " & last word of line clickedLine of field "Index2"¬¨
  699. after field "SearchPattern2"
  700. get zbrowser ("SETSUBSETBITS", clickedLine + getWordNum2() - 1,¬¨
  701. getNeighborhoodSize(), 0, getKeyFileRefNum(), getPtrFileRefNum(),¬¨
  702. getSubsetHandle(2))
  703. else -- add the word
  704. if field "SearchPattern2" is not empty then
  705. put " or " after field "searchPattern2"
  706. end if
  707. put last word of line clickedLine of field "Index2" after¬¨
  708. field "SearchPattern2"
  709. get zbrowser ("SETSUBSETBITS", clickedLine + getWordNum2() - 1,¬¨
  710. getNeighborhoodSize(), 1, getKeyFileRefNum(), getPtrFileRefNum(),¬¨
  711. getSubsetHandle(2))
  712. end if
  713. browseIndex2
  714. else
  715. --must retrieve clicked word
  716. put getInstanceList2item (clickedLine) into instanceNum
  717. if instanceNum is empty then
  718. beep
  719. answer "Sorry, nothing to retrieve!"
  720. exit to HyperCard
  721. end if
  722. setInstanceNum instanceNum
  723. put 2 into whichSubset
  724. browseContext 1
  725. end if
  726. end mouseUp
  727. </script>
  728.     </part>
  729.     <part>
  730.         <id>1</id>
  731.         <type>field</type>
  732.         <visible> <true /> </visible>
  733.         <dontWrap> <false /> </dontWrap>
  734.         <dontSearch> <false /> </dontSearch>
  735.         <sharedText> <false /> </sharedText>
  736.         <fixedLineHeight> <true /> </fixedLineHeight>
  737.         <autoTab> <false /> </autoTab>
  738.         <lockText> <true /> </lockText>
  739.         <rect>
  740.             <left>0</left>
  741.             <top>35</top>
  742.             <right>217</right>
  743.             <bottom>120</bottom>
  744.         </rect>
  745.         <style>rectangle</style>
  746.         <autoSelect> <false /> </autoSelect>
  747.         <showLines> <false /> </showLines>
  748.         <wideMargins> <false /> </wideMargins>
  749.         <multipleLines> <false /> </multipleLines>
  750.         <reservedFamily> 0 </reservedFamily>
  751.         <titleWidth>0</titleWidth>
  752.         <icon>0</icon>
  753.         <textAlign>left</textAlign>
  754.         <font>Monaco</font>
  755.         <textSize>9</textSize>
  756.         <textStyle>plain</textStyle>
  757.         <textHeight>12</textHeight>
  758.         <name>Index1</name>
  759.         <script>on mouseUp
  760. global whichSubset
  761. put ShiftKey() into shifty
  762. put OptionKey() into opty
  763. checkOpenDatabase -- make sure files are open
  764. set cursor to watch
  765. lock screen
  766. put clickedLineNum() into clickedLine
  767. if shifty is down and getSubsetHandle(1) is not 0 then
  768. -- must add or subtract word from subset
  769. show field "SearchPattern1"
  770. if opty is down then -- subtract the word
  771. put " and not " & last word of line clickedLine of field "Index1"¬¨
  772. after field "SearchPattern1"
  773. get zbrowser ("SETSUBSETBITS", clickedLine + getWordNum1() - 1,¬¨
  774. getNeighborhoodSize(), 0, getKeyFileRefNum(), getPtrFileRefNum(),¬¨
  775. getSubsetHandle(1))
  776. else -- add the word
  777. if field "SearchPattern1" is not empty then
  778. put " or " after field "searchPattern1"
  779. end if
  780. put last word of line clickedLine of field "Index1" after¬¨
  781. field "SearchPattern1"
  782. get zbrowser ("SETSUBSETBITS", clickedLine + getWordNum1() - 1,¬¨
  783. getNeighborhoodSize(), 1, getKeyFileRefNum(), getPtrFileRefNum(),¬¨
  784. getSubsetHandle(1))
  785. end if
  786. browseIndex1
  787. else
  788. --must retrieve clicked word
  789. put getInstanceList1item (clickedLine) into instanceNum
  790. if instanceNum is empty then
  791. beep
  792. answer "Sorry, nothing to retrieve!"
  793. exit to HyperCard
  794. end if
  795. setInstanceNum instanceNum
  796. put 1 into whichSubset
  797. browseContext 1
  798. end if
  799. end mouseUp
  800. </script>
  801.     </part>
  802.     <part>
  803.         <id>4</id>
  804.         <type>field</type>
  805.         <visible> <true /> </visible>
  806.         <dontWrap> <false /> </dontWrap>
  807.         <dontSearch> <false /> </dontSearch>
  808.         <sharedText> <false /> </sharedText>
  809.         <fixedLineHeight> <true /> </fixedLineHeight>
  810.         <autoTab> <false /> </autoTab>
  811.         <lockText> <true /> </lockText>
  812.         <rect>
  813.             <left>0</left>
  814.             <top>123</top>
  815.             <right>496</right>
  816.             <bottom>208</bottom>
  817.         </rect>
  818.         <style>rectangle</style>
  819.         <autoSelect> <false /> </autoSelect>
  820.         <showLines> <false /> </showLines>
  821.         <wideMargins> <false /> </wideMargins>
  822.         <multipleLines> <false /> </multipleLines>
  823.         <reservedFamily> 0 </reservedFamily>
  824.         <titleWidth>0</titleWidth>
  825.         <icon>0</icon>
  826.         <textAlign>left</textAlign>
  827.         <font>Monaco</font>
  828.         <textSize>9</textSize>
  829.         <textStyle>plain</textStyle>
  830.         <textHeight>12</textHeight>
  831.         <name>Context</name>
  832.         <script>on mouseUp
  833. -- modified script for Context Field, to get the tags for stack name
  834. -- and card number for indexed stack (via tag file) -- ^z -- 19901020
  835. global textChunkSize, textOffset
  836. lock screen
  837. set cursor to watch
  838. checkOpenDatabase -- make sure files are open
  839. put clickedLineNum() into clickedLine
  840. put getTextPtrListPtrItem(clickedLIne) into textPtr
  841. if textPtr < 0 then
  842. beep
  843. answer "Sorry, nothing to retrieve!"
  844. exit to HyperCard
  845. end if
  846. hide field "SearchPattern1"
  847. hide field "SearchPattern2"
  848. put zbrowser ("TEXT", textPtr, textChunkSize, textOffset,¬¨
  849. getTextFileRefNum()) into tmpBuffer
  850. put word 1 of tmpBuffer into soughtWord
  851. get offset ("{[(", tmpBuffer)
  852. put char It + 4 to It + 200 of tmpBuffer into tmpBuffer
  853. put line 2 of tmpBuffer into cardNum
  854. put line 1 of tmpBuffer into stackName
  855. go to card cardNum of stack stackName in a new window
  856. find soughtWord
  857. end mouseUp
  858. </script>
  859.     </part>
  860.     <part>
  861.         <id>11</id>
  862.         <type>field</type>
  863.         <visible> <false /> </visible>
  864.         <dontWrap> <false /> </dontWrap>
  865.         <dontSearch> <false /> </dontSearch>
  866.         <sharedText> <false /> </sharedText>
  867.         <fixedLineHeight> <true /> </fixedLineHeight>
  868.         <autoTab> <false /> </autoTab>
  869.         <lockText> <false /> </lockText>
  870.         <rect>
  871.             <left>234</left>
  872.             <top>62</top>
  873.             <right>423</right>
  874.             <bottom>184</bottom>
  875.         </rect>
  876.         <style>scrolling</style>
  877.         <autoSelect> <false /> </autoSelect>
  878.         <showLines> <false /> </showLines>
  879.         <wideMargins> <false /> </wideMargins>
  880.         <multipleLines> <false /> </multipleLines>
  881.         <reservedFamily> 0 </reservedFamily>
  882.         <titleWidth>0</titleWidth>
  883.         <icon>0</icon>
  884.         <textAlign>left</textAlign>
  885.         <font>Monaco</font>
  886.         <textSize>9</textSize>
  887.         <textStyle>plain</textStyle>
  888.         <textHeight>12</textHeight>
  889.         <name>FTvars</name>
  890.         <script></script>
  891.     </part>
  892.     <part>
  893.         <id>16</id>
  894.         <type>button</type>
  895.         <visible> <false /> </visible>
  896.         <reserved5> 0 </reserved5>
  897.         <reserved4> 0 </reserved4>
  898.         <reserved3> 0 </reserved3>
  899.         <reserved2> 0 </reserved2>
  900.         <reserved1> 0 </reserved1>
  901.         <enabled> <true /> </enabled>
  902.         <rect>
  903.             <left>233</left>
  904.             <top>20</top>
  905.             <right>255</right>
  906.             <bottom>42</bottom>
  907.         </rect>
  908.         <style>transparent</style>
  909.         <showName> <false /> </showName>
  910.         <highlight> <false /> </highlight>
  911.         <autoHighlight> <false /> </autoHighlight>
  912.         <sharedHighlight> <true /> </sharedHighlight>
  913.         <family>0</family>
  914.         <titleWidth>0</titleWidth>
  915.         <icon>29513</icon>
  916.         <textAlign>center</textAlign>
  917.         <font>Chicago</font>
  918.         <textSize>12</textSize>
  919.         <textStyle>plain</textStyle>
  920.         <name>fill subset 1</name>
  921.         <script>on mouseUp
  922. -- fill the subset associated with Index field #1
  923. checkOpenDatabase
  924. if not (getSubsetHandle(1) = 0 or getSubsetHandle(1) = empty) then
  925. get zbrowser ("RELEASESUBSET", getSubsetHandle(1))
  926. setSubsetHandle 1,0
  927. end if
  928. browseIndex1
  929. hide field "searchPattern1"
  930. hide bg button "and subsets"
  931. hide bg button "or subsets"
  932. hide bg button "not subset 1"
  933. hide bg button "fill subset 1"
  934. end mouseUp
  935.  
  936. </script>
  937.     </part>
  938.     <part>
  939.         <id>17</id>
  940.         <type>button</type>
  941.         <visible> <false /> </visible>
  942.         <reserved5> 0 </reserved5>
  943.         <reserved4> 0 </reserved4>
  944.         <reserved3> 0 </reserved3>
  945.         <reserved2> 0 </reserved2>
  946.         <reserved1> 0 </reserved1>
  947.         <enabled> <true /> </enabled>
  948.         <rect>
  949.             <left>233</left>
  950.             <top>40</top>
  951.             <right>255</right>
  952.             <bottom>62</bottom>
  953.         </rect>
  954.         <style>transparent</style>
  955.         <showName> <false /> </showName>
  956.         <highlight> <false /> </highlight>
  957.         <autoHighlight> <false /> </autoHighlight>
  958.         <sharedHighlight> <true /> </sharedHighlight>
  959.         <family>0</family>
  960.         <titleWidth>0</titleWidth>
  961.         <icon>29515</icon>
  962.         <textAlign>center</textAlign>
  963.         <font>Chicago</font>
  964.         <textSize>12</textSize>
  965.         <textStyle>plain</textStyle>
  966.         <name>not subset 1</name>
  967.         <script>on mouseUp
  968. -- invert the subset associated with Index field #1
  969. checkOpenDatabase
  970. if (getSubsetHandle(1) = 0 or getSubsetHandle(1) = empty) then
  971. beep
  972. answer "Sorry, subset not open!"
  973. exit to HyperCard
  974. else
  975. get zbrowser ("BOOLEANNOTSUBSET", getSubsetHandle(1))
  976. end if
  977. browseIndex1
  978. if the number of words in field "SearchPattern1" > 1 then
  979. put "not (" before field "SearchPattern1"
  980. put ")" after field "SearchPattern1"
  981. else
  982. put "not " before field "SearchPattern1"
  983. end if
  984. show field "SearchPattern1"
  985. end mouseUp
  986.  
  987. </script>
  988.     </part>
  989.     <part>
  990.         <id>18</id>
  991.         <type>button</type>
  992.         <visible> <false /> </visible>
  993.         <reserved5> 0 </reserved5>
  994.         <reserved4> 0 </reserved4>
  995.         <reserved3> 0 </reserved3>
  996.         <reserved2> 0 </reserved2>
  997.         <reserved1> 0 </reserved1>
  998.         <enabled> <true /> </enabled>
  999.         <rect>
  1000.             <left>240</left>
  1001.             <top>61</top>
  1002.             <right>271</right>
  1003.             <bottom>83</bottom>
  1004.         </rect>
  1005.         <style>transparent</style>
  1006.         <showName> <false /> </showName>
  1007.         <highlight> <false /> </highlight>
  1008.         <autoHighlight> <false /> </autoHighlight>
  1009.         <sharedHighlight> <true /> </sharedHighlight>
  1010.         <family>0</family>
  1011.         <titleWidth>0</titleWidth>
  1012.         <icon>29518</icon>
  1013.         <textAlign>center</textAlign>
  1014.         <font>Chicago</font>
  1015.         <textSize>12</textSize>
  1016.         <textStyle>plain</textStyle>
  1017.         <name>or subsets</name>
  1018.         <script>on mouseUp
  1019. -- union (Boolean OR) subsets
  1020. checkOpenDatabase
  1021. if (getSubsetHandle(1) = 0 or getSubsetHandle(1) = empty or¬¨
  1022. getSubsetHandle(2) = 0 or getSubsetHandle(2) = empty) then
  1023. beep
  1024. answer "Sorry, subset not open!"
  1025. exit to HyperCard
  1026. end if
  1027. if clickedOnLeftHalf() then
  1028. get zbrowser ("ORSUBSETS", getSubsetHandle(1), getSubsetHandle(2))
  1029. browseIndex1
  1030. if field "SearchPattern1" is empty then
  1031. put field "SearchPattern2" into field "SearchPattern1"
  1032. else
  1033. if the number of words in field "SearchPattern2" > 1 then
  1034. put " or (" & field "SearchPattern2" & ")" after field¬¨
  1035. "SearchPattern1"
  1036. else
  1037. put " or " & field "SearchPattern2" after field "SearchPattern1"
  1038. end if
  1039. end if
  1040. else
  1041. get zbrowser ("ORSUBSETS", getSubsetHandle(2), getSubsetHandle(1))
  1042. browseIndex2
  1043. if field "SearchPattern2" is empty then
  1044. put field "SearchPattern1" into field "SearchPattern2"
  1045. else
  1046. if the number of words in field "SearchPattern1" > 1 then
  1047. put " or (" & field "SearchPattern1" & ")" after field¬¨
  1048. "SearchPattern2"
  1049. else
  1050. put " or " & field "SearchPattern1" after field "SearchPattern2"
  1051. end if
  1052. end if
  1053. end if
  1054. end mouseUp
  1055.  
  1056. </script>
  1057.     </part>
  1058.     <part>
  1059.         <id>19</id>
  1060.         <type>button</type>
  1061.         <visible> <false /> </visible>
  1062.         <reserved5> 0 </reserved5>
  1063.         <reserved4> 0 </reserved4>
  1064.         <reserved3> 0 </reserved3>
  1065.         <reserved2> 0 </reserved2>
  1066.         <reserved1> 0 </reserved1>
  1067.         <enabled> <true /> </enabled>
  1068.         <rect>
  1069.             <left>240</left>
  1070.             <top>82</top>
  1071.             <right>271</right>
  1072.             <bottom>104</bottom>
  1073.         </rect>
  1074.         <style>transparent</style>
  1075.         <showName> <false /> </showName>
  1076.         <highlight> <false /> </highlight>
  1077.         <autoHighlight> <false /> </autoHighlight>
  1078.         <sharedHighlight> <true /> </sharedHighlight>
  1079.         <family>0</family>
  1080.         <titleWidth>0</titleWidth>
  1081.         <icon>29517</icon>
  1082.         <textAlign>center</textAlign>
  1083.         <font>Chicago</font>
  1084.         <textSize>12</textSize>
  1085.         <textStyle>plain</textStyle>
  1086.         <name>and subsets</name>
  1087.         <script>on mouseUp
  1088. -- intersection (Boolean AND) subsets
  1089. checkOpenDatabase
  1090. if (getSubsetHandle(1) = 0 or getSubsetHandle(1) = empty or¬¨
  1091. getSubsetHandle(2) = 0 or getSubsetHandle(2) = empty) then
  1092. beep
  1093. answer "Sorry, subset not open!"
  1094. exit to HyperCard
  1095. end if
  1096. if clickedOnLeftHalf() then
  1097. get zbrowser ("ANDSUBSETS", getSubsetHandle(1), getSubsetHandle(2))
  1098. browseIndex1
  1099. if field "SearchPattern1" is not empty then
  1100. if the number of words in field "SearchPattern2" > 1 then
  1101. put " and (" & field "SearchPattern2" & ")" after field¬¨
  1102. "SearchPattern1"
  1103. else
  1104. put " and " & field "SearchPattern2" after field "SearchPattern1"
  1105. end if
  1106. end if
  1107. else
  1108. get zbrowser ("ANDSUBSETS", getSubsetHandle(2), getSubsetHandle(1))
  1109. browseIndex2
  1110. if field "SearchPattern2" is not empty then
  1111. if the number of words in field "SearchPattern1" > 1 then
  1112. put " and (" & field "SearchPattern1" & ")" after field¬¨
  1113. "SearchPattern2"
  1114. else
  1115. put " and " & field "SearchPattern1" after field¬¨
  1116. "SearchPattern2"
  1117. end if
  1118. end if
  1119. end if
  1120. end mouseUp
  1121.  
  1122. </script>
  1123.     </part>
  1124.     <part>
  1125.         <id>21</id>
  1126.         <type>button</type>
  1127.         <visible> <false /> </visible>
  1128.         <reserved5> 0 </reserved5>
  1129.         <reserved4> 0 </reserved4>
  1130.         <reserved3> 0 </reserved3>
  1131.         <reserved2> 0 </reserved2>
  1132.         <reserved1> 0 </reserved1>
  1133.         <enabled> <true /> </enabled>
  1134.         <rect>
  1135.             <left>257</left>
  1136.             <top>20</top>
  1137.             <right>279</right>
  1138.             <bottom>42</bottom>
  1139.         </rect>
  1140.         <style>transparent</style>
  1141.         <showName> <false /> </showName>
  1142.         <highlight> <false /> </highlight>
  1143.         <autoHighlight> <false /> </autoHighlight>
  1144.         <sharedHighlight> <true /> </sharedHighlight>
  1145.         <family>0</family>
  1146.         <titleWidth>0</titleWidth>
  1147.         <icon>29513</icon>
  1148.         <textAlign>center</textAlign>
  1149.         <font>Chicago</font>
  1150.         <textSize>12</textSize>
  1151.         <textStyle>plain</textStyle>
  1152.         <name>fill subset 2</name>
  1153.         <script>on mouseUp
  1154. -- fill the subset associated with Index field #2
  1155. checkOpenDatabase
  1156. if not (getSubsetHandle(2) = 0 or getSubsetHandle(2) = empty) then
  1157. get zbrowser ("RELEASESUBSET", getSubsetHandle(2))
  1158. setSubsetHandle 2,0
  1159. end if
  1160. browseIndex2
  1161. hide field "searchPattern2"
  1162. hide bg button "and subsets"
  1163. hide bg button "or subsets"
  1164. hide bg button "not subset 2"
  1165. hide bg button "fill subset 2"
  1166. end mouseUp
  1167.  
  1168. </script>
  1169.     </part>
  1170.     <part>
  1171.         <id>22</id>
  1172.         <type>button</type>
  1173.         <visible> <false /> </visible>
  1174.         <reserved5> 0 </reserved5>
  1175.         <reserved4> 0 </reserved4>
  1176.         <reserved3> 0 </reserved3>
  1177.         <reserved2> 0 </reserved2>
  1178.         <reserved1> 0 </reserved1>
  1179.         <enabled> <true /> </enabled>
  1180.         <rect>
  1181.             <left>257</left>
  1182.             <top>40</top>
  1183.             <right>279</right>
  1184.             <bottom>62</bottom>
  1185.         </rect>
  1186.         <style>transparent</style>
  1187.         <showName> <false /> </showName>
  1188.         <highlight> <false /> </highlight>
  1189.         <autoHighlight> <false /> </autoHighlight>
  1190.         <sharedHighlight> <true /> </sharedHighlight>
  1191.         <family>0</family>
  1192.         <titleWidth>0</titleWidth>
  1193.         <icon>29515</icon>
  1194.         <textAlign>center</textAlign>
  1195.         <font>Chicago</font>
  1196.         <textSize>12</textSize>
  1197.         <textStyle>plain</textStyle>
  1198.         <name>not subset 2</name>
  1199.         <script>on mouseUp
  1200. -- invert the subset associated with Index field #2
  1201. checkOpenDatabase
  1202. if (getSubsetHandle(2) = 0 or getSubsetHandle(2) = empty) then
  1203. beep
  1204. answer "Sorry, subset not open!"
  1205. exit to HyperCard
  1206. else
  1207. get zbrowser ("BOOLEANNOTSUBSET", getSubsetHandle(2))
  1208. end if
  1209. browseIndex2
  1210. if the number of words in field "SearchPattern2" > 1 then
  1211. put "not (" before field "SearchPattern2"
  1212. put ")" after field "SearchPattern2"
  1213. else
  1214. put "not " before field "SearchPattern2"
  1215. end if
  1216. show field "SearchPattern2"
  1217. end mouseUp
  1218.  
  1219. </script>
  1220.     </part>
  1221.     <part>
  1222.         <id>29</id>
  1223.         <type>button</type>
  1224.         <visible> <true /> </visible>
  1225.         <reserved5> 0 </reserved5>
  1226.         <reserved4> 0 </reserved4>
  1227.         <reserved3> 0 </reserved3>
  1228.         <reserved2> 0 </reserved2>
  1229.         <reserved1> 0 </reserved1>
  1230.         <enabled> <true /> </enabled>
  1231.         <rect>
  1232.             <left>216</left>
  1233.             <top>104</top>
  1234.             <right>233</right>
  1235.             <bottom>120</bottom>
  1236.         </rect>
  1237.         <style>rectangle</style>
  1238.         <showName> <false /> </showName>
  1239.         <highlight> <false /> </highlight>
  1240.         <autoHighlight> <true /> </autoHighlight>
  1241.         <sharedHighlight> <true /> </sharedHighlight>
  1242.         <family>0</family>
  1243.         <titleWidth>0</titleWidth>
  1244.         <icon>20407</icon>
  1245.         <textAlign>center</textAlign>
  1246.         <font>Chicago</font>
  1247.         <textSize>12</textSize>
  1248.         <textStyle>plain</textStyle>
  1249.         <name>scrollDownIndex1</name>
  1250.         <script>on mouseDown
  1251. global indexLines
  1252. checkOpenDatabase
  1253. if line indexLines of field Index1 is empty then
  1254. beep
  1255. exit mouseDown
  1256. end if
  1257. setWordNum1 (getWordNum1() + 1)
  1258. browseIndex1
  1259. end mouseDown
  1260.  
  1261. on mouseStillDown
  1262. global indexLines
  1263. if line indexLines of field Index1 is empty then
  1264. beep
  1265. exit mouseStillDown
  1266. end if
  1267. setWordNum1 (getWordNum1() + 2)
  1268. browseIndex1
  1269. end mouseStillDown
  1270. </script>
  1271.     </part>
  1272.     <part>
  1273.         <id>37</id>
  1274.         <type>button</type>
  1275.         <visible> <true /> </visible>
  1276.         <reserved5> 0 </reserved5>
  1277.         <reserved4> 0 </reserved4>
  1278.         <reserved3> 0 </reserved3>
  1279.         <reserved2> 0 </reserved2>
  1280.         <reserved1> 0 </reserved1>
  1281.         <enabled> <true /> </enabled>
  1282.         <rect>
  1283.             <left>495</left>
  1284.             <top>123</top>
  1285.             <right>512</right>
  1286.             <bottom>139</bottom>
  1287.         </rect>
  1288.         <style>rectangle</style>
  1289.         <showName> <false /> </showName>
  1290.         <highlight> <false /> </highlight>
  1291.         <autoHighlight> <true /> </autoHighlight>
  1292.         <sharedHighlight> <true /> </sharedHighlight>
  1293.         <family>0</family>
  1294.         <titleWidth>0</titleWidth>
  1295.         <icon>24019</icon>
  1296.         <textAlign>center</textAlign>
  1297.         <font>Chicago</font>
  1298.         <textSize>12</textSize>
  1299.         <textStyle>plain</textStyle>
  1300.         <name>scrollUpContext</name>
  1301.         <script>on mouseDown
  1302. checkOpenDatabase
  1303. if line 1 of field Context is empty then exit mouseDown
  1304. browseContext 2
  1305. setInstanceNum getTextPtrListInstanceItem (1)
  1306. end mouseDown
  1307.  
  1308. on mouseStillDown
  1309. if line 1 of field Context is empty then exit mouseStillDown
  1310. browseContext 3
  1311. setInstanceNum getTextPtrListInstanceItem (1)
  1312. end mouseStillDown
  1313. </script>
  1314.     </part>
  1315.     <part>
  1316.         <id>42</id>
  1317.         <type>button</type>
  1318.         <visible> <true /> </visible>
  1319.         <reserved5> 0 </reserved5>
  1320.         <reserved4> 0 </reserved4>
  1321.         <reserved3> 0 </reserved3>
  1322.         <reserved2> 0 </reserved2>
  1323.         <reserved1> 0 </reserved1>
  1324.         <enabled> <true /> </enabled>
  1325.         <rect>
  1326.             <left>496</left>
  1327.             <top>158</top>
  1328.             <right>512</right>
  1329.             <bottom>174</bottom>
  1330.         </rect>
  1331.         <style>rectangle</style>
  1332.         <showName> <false /> </showName>
  1333.         <highlight> <false /> </highlight>
  1334.         <autoHighlight> <true /> </autoHighlight>
  1335.         <sharedHighlight> <true /> </sharedHighlight>
  1336.         <family>0</family>
  1337.         <titleWidth>0</titleWidth>
  1338.         <icon>15717</icon>
  1339.         <textAlign>center</textAlign>
  1340.         <font>Chicago</font>
  1341.         <textSize>12</textSize>
  1342.         <textStyle>plain</textStyle>
  1343.         <name>jumpContext</name>
  1344.         <script>on mouseUp
  1345. checkOpenDatabase
  1346. ask "Instances (+/-) to jump?"
  1347. lock screen
  1348. setInstanceNum (It + getInstanceNum())
  1349. browseContext 1
  1350. end mouseUp
  1351.  
  1352. </script>
  1353.     </part>
  1354.     <part>
  1355.         <id>40</id>
  1356.         <type>button</type>
  1357.         <visible> <true /> </visible>
  1358.         <reserved5> 0 </reserved5>
  1359.         <reserved4> 0 </reserved4>
  1360.         <reserved3> 0 </reserved3>
  1361.         <reserved2> 0 </reserved2>
  1362.         <reserved1> 0 </reserved1>
  1363.         <enabled> <true /> </enabled>
  1364.         <rect>
  1365.             <left>495</left>
  1366.             <top>192</top>
  1367.             <right>512</right>
  1368.             <bottom>208</bottom>
  1369.         </rect>
  1370.         <style>rectangle</style>
  1371.         <showName> <false /> </showName>
  1372.         <highlight> <false /> </highlight>
  1373.         <autoHighlight> <true /> </autoHighlight>
  1374.         <sharedHighlight> <true /> </sharedHighlight>
  1375.         <family>0</family>
  1376.         <titleWidth>0</titleWidth>
  1377.         <icon>20407</icon>
  1378.         <textAlign>center</textAlign>
  1379.         <font>Chicago</font>
  1380.         <textSize>12</textSize>
  1381.         <textStyle>plain</textStyle>
  1382.         <name>scrollDownContext</name>
  1383.         <script>on mouseDown
  1384. global contextLines
  1385. checkOpenDatabase
  1386. if line contextLines of field Context is empty then exit mouseDown
  1387. setInstanceNum getTextPtrListInstanceItem (contextLines)
  1388. browseContext contextLines-1
  1389. setInstanceNum getTextPtrListInstanceItem (1)
  1390. end mouseDown
  1391.  
  1392. on mouseStillDown
  1393. global contextLines
  1394. if line contextLines of field Context is empty then exit mouseStillDown
  1395. setInstanceNum getTextPtrListInstanceItem (contextLines)
  1396. browseContext contextLines-2
  1397. setInstanceNum getTextPtrListInstanceItem (1)
  1398. end mouseStillDown
  1399. </script>
  1400.     </part>
  1401.     <part>
  1402.         <id>41</id>
  1403.         <type>button</type>
  1404.         <visible> <true /> </visible>
  1405.         <reserved5> 0 </reserved5>
  1406.         <reserved4> 0 </reserved4>
  1407.         <reserved3> 0 </reserved3>
  1408.         <reserved2> 0 </reserved2>
  1409.         <reserved1> 0 </reserved1>
  1410.         <enabled> <true /> </enabled>
  1411.         <rect>
  1412.             <left>474</left>
  1413.             <top>6</top>
  1414.             <right>506</right>
  1415.             <bottom>26</bottom>
  1416.         </rect>
  1417.         <style>transparent</style>
  1418.         <showName> <false /> </showName>
  1419.         <highlight> <false /> </highlight>
  1420.         <autoHighlight> <false /> </autoHighlight>
  1421.         <sharedHighlight> <true /> </sharedHighlight>
  1422.         <family>0</family>
  1423.         <titleWidth>0</titleWidth>
  1424.         <icon>29531</icon>
  1425.         <textAlign>center</textAlign>
  1426.         <font>Geneva</font>
  1427.         <textSize>9</textSize>
  1428.         <textStyle>bold</textStyle>
  1429.         <name>Open</name>
  1430.         <script>on mouseUp
  1431. global indexLines
  1432. closeDatabase -- close out any open files first
  1433. get openCloseFiles ( ) -- put up dialog box to pick database
  1434. if It is empty then exit to HyperCard -- quit if user chooses 'Cancel'
  1435. if char 1 of It is "{" then -- display error msg if necessary
  1436. answer It
  1437. exit mouseUp
  1438. end if
  1439. put line 2 of It into field "database name"
  1440. set cursor to watch
  1441. lock screen
  1442. setTextFileRefNum(word 1 of It) -- store returned refNum values
  1443. setKeyFileRefNum(word 2 of It)
  1444. setPtrFileRefNum(word 3 of It)
  1445. setNeighborhoodSize 48 -- initialize neighborhood for proximity search
  1446. setSubsetHandle 1,0 -- initialize subsets to empty
  1447. setSubsetHandle 2,0
  1448. setWordNum1 (line 1 of zbrowser("LOCATE", "A", getKeyFileRefNum()))
  1449. if getWordNum1() < 0 then setWordNum1(0)
  1450. setWordNum2 (line 1 of zbrowser("LOCATE", "Z", getKeyFileRefNum()))
  1451. if getWordNum2() < 0 then setWordNum2(0)
  1452. browseIndex1 -- load index windows
  1453. browseIndex2
  1454. setInstanceNum(getInstanceList1item (1))
  1455. browseContext 1
  1456. end mouseUp
  1457. </script>
  1458.     </part>
  1459.     <part>
  1460.         <id>45</id>
  1461.         <type>field</type>
  1462.         <visible> <false /> </visible>
  1463.         <dontWrap> <false /> </dontWrap>
  1464.         <dontSearch> <false /> </dontSearch>
  1465.         <sharedText> <false /> </sharedText>
  1466.         <fixedLineHeight> <true /> </fixedLineHeight>
  1467.         <autoTab> <false /> </autoTab>
  1468.         <lockText> <true /> </lockText>
  1469.         <rect>
  1470.             <left>0</left>
  1471.             <top>265</top>
  1472.             <right>233</right>
  1473.             <bottom>340</bottom>
  1474.         </rect>
  1475.         <style>shadow</style>
  1476.         <autoSelect> <false /> </autoSelect>
  1477.         <showLines> <false /> </showLines>
  1478.         <wideMargins> <false /> </wideMargins>
  1479.         <multipleLines> <false /> </multipleLines>
  1480.         <reservedFamily> 0 </reservedFamily>
  1481.         <titleWidth>0</titleWidth>
  1482.         <icon>0</icon>
  1483.         <textAlign>left</textAlign>
  1484.         <font>Monaco</font>
  1485.         <textSize>9</textSize>
  1486.         <textStyle>plain</textStyle>
  1487.         <textHeight>12</textHeight>
  1488.         <name>SearchPattern1</name>
  1489.         <script>on mouseUp
  1490. hide field "SearchPattern1"
  1491. end mouseUp</script>
  1492.     </part>
  1493.     <part>
  1494.         <id>46</id>
  1495.         <type>field</type>
  1496.         <visible> <false /> </visible>
  1497.         <dontWrap> <false /> </dontWrap>
  1498.         <dontSearch> <false /> </dontSearch>
  1499.         <sharedText> <false /> </sharedText>
  1500.         <fixedLineHeight> <true /> </fixedLineHeight>
  1501.         <autoTab> <false /> </autoTab>
  1502.         <lockText> <true /> </lockText>
  1503.         <rect>
  1504.             <left>279</left>
  1505.             <top>265</top>
  1506.             <right>512</right>
  1507.             <bottom>340</bottom>
  1508.         </rect>
  1509.         <style>shadow</style>
  1510.         <autoSelect> <false /> </autoSelect>
  1511.         <showLines> <false /> </showLines>
  1512.         <wideMargins> <false /> </wideMargins>
  1513.         <multipleLines> <false /> </multipleLines>
  1514.         <reservedFamily> 0 </reservedFamily>
  1515.         <titleWidth>0</titleWidth>
  1516.         <icon>0</icon>
  1517.         <textAlign>left</textAlign>
  1518.         <font>Monaco</font>
  1519.         <textSize>9</textSize>
  1520.         <textStyle>plain</textStyle>
  1521.         <textHeight>12</textHeight>
  1522.         <name>SearchPattern2</name>
  1523.         <script>on mouseUp
  1524. hide field "SearchPattern2"
  1525. end mouseUp</script>
  1526.     </part>
  1527.     <part>
  1528.         <id>47</id>
  1529.         <type>field</type>
  1530.         <visible> <true /> </visible>
  1531.         <dontWrap> <false /> </dontWrap>
  1532.         <dontSearch> <false /> </dontSearch>
  1533.         <sharedText> <false /> </sharedText>
  1534.         <fixedLineHeight> <true /> </fixedLineHeight>
  1535.         <autoTab> <false /> </autoTab>
  1536.         <lockText> <true /> </lockText>
  1537.         <rect>
  1538.             <left>19</left>
  1539.             <top>8</top>
  1540.             <right>192</right>
  1541.             <bottom>23</bottom>
  1542.         </rect>
  1543.         <style>rectangle</style>
  1544.         <autoSelect> <false /> </autoSelect>
  1545.         <showLines> <false /> </showLines>
  1546.         <wideMargins> <false /> </wideMargins>
  1547.         <multipleLines> <false /> </multipleLines>
  1548.         <reservedFamily> 0 </reservedFamily>
  1549.         <titleWidth>0</titleWidth>
  1550.         <icon>0</icon>
  1551.         <textAlign>center</textAlign>
  1552.         <font>Monaco</font>
  1553.         <textSize>9</textSize>
  1554.         <textStyle>plain</textStyle>
  1555.         <textHeight>12</textHeight>
  1556.         <name>database name</name>
  1557.         <script></script>
  1558.     </part>
  1559.     <name>BrowserBg</name>
  1560.     <script>on openCard -- make sure subset buttons are right for this card
  1561. put getSubsetHandle(1) = 0 or getSubsetHandle(1) = empty into noSub1
  1562. put getSubsetHandle(2) = 0 or getSubsetHandle(2) = empty into noSub2
  1563. if noSub1 and noSub2 then -- no subsets active on this card
  1564. hide bg button "and subsets"
  1565. hide bg button "or subsets"
  1566. hide bg button "not subset 1"
  1567. hide bg button "not subset 2"
  1568. hide bg button "fill subset 1"
  1569. hide bg button "fill subset 2"
  1570. else if noSub1 then -- only subset 2 active on this card
  1571. hide bg button "and subsets"
  1572. hide bg button "or subsets"
  1573. hide bg button "not subset 1"
  1574. hide bg button "fill subset 1"
  1575. show bg button "fill subset 2"
  1576. show bg button "not subset 2"
  1577. else if noSub2 then -- only subset 1 active on this card
  1578. hide bg button "and subsets"
  1579. hide bg button "or subsets"
  1580. hide bg button "not subset 2"
  1581. hide bg button "fill subset 2"
  1582. show bg button "fill subset 1"
  1583. show bg button "not subset 1"
  1584. else                -- both subsets 1 and 2 active on this card
  1585. show bg button "fill subset 1"
  1586. show bg button "fill subset 2"
  1587. show bg button "not subset 1"
  1588. show bg button "not subset 2"
  1589. show bg button "or subsets"
  1590. show bg button "and subsets"
  1591. end if
  1592. end openCard
  1593.  
  1594. on closeCard -- tidy up when leaving...
  1595. hide field "searchPattern1"
  1596. hide field "searchPattern2"
  1597. end closeCard</script>
  1598. </background>
  1599.